/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package common;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Jhonny
 */
@XStreamAlias("envt")
public class ENVT {

    @XStreamAlias("nroEnvt")
    private Long nroEnvt;
    @XStreamAlias("idCentroDist")
    private Long idCentroDist;
    @XStreamImplicit(itemFieldName="articulo")
    private List<ArticuloStock> articulos;

    public ENVT() {
        articulos = new LinkedList<ArticuloStock>();
    }

    public List<ArticuloStock> getArticulos() {
        return articulos;
    }

    public void setArticulos(List<ArticuloStock> articulos) {
        this.articulos = articulos;
    }

    public Long getIdCentroDist() {
        return idCentroDist;
    }

    public void setIdCentroDist(Long idCentroDist) {
        this.idCentroDist = idCentroDist;
    }

    public Long getNroEnvt() {
        return nroEnvt;
    }

    public void setNroEnvt(Long nroEnvt) {
        this.nroEnvt = nroEnvt;
    }

    public void addArticulo(ArticuloStock articulo) {
        articulos.add(articulo);
    }

}
